const {
	Controller
} = require('uni-cloud-router')

module.exports = class SubScribeController extends Controller {
  async openDoor() {
    let { doorSn } = this.ctx.data
    
    if (!doorSn) return { code: 500, msg: '参数错误' }
    
    return await this.service.subscribe.openDoor({ doorSn })
  }
}
